package gao.xiaolei.dao;

import gao.xiaolei.entity.TestStatus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository("TestStatusDao")
public interface TestStatusDao extends JpaRepository<TestStatus, Integer> {

    @Query("select codeDescribe from TestStatus where code=:code")
    public String getDescribeOfCode(@Param("code") int code);
}
